//
//  WPTradeDetailViewController.m
//  ZhongChouPingTai
//
//  Created by WeiPan on 16/4/5.
//  Copyright © 2016年 WPJoe. All rights reserved.
//

#import "WPTradeDetailViewController.h"

@interface WPTradeDetailViewController ()
@property (nonatomic, strong) UIScrollView * scrollView;/**< 滚动视图 */
@property (nonatomic, strong) UIImageView * detailImageView;/**< 详情图片 */
- (void)initializeUserInterface; /**< 初始化用户界面 */


@end

@implementation WPTradeDetailViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    [self initializeUserInterface];
}
#pragma mark - init

- (void)initializeUserInterface {
    [self.view addSubview:self.scrollView];
//    self.detailImageView.image = IMAGE_NAME(@"bigbang项目详情");
    self.detailImageView.image = IMAGE_NAME(self.imageName);
}
#pragma mark - 刷新数据
- (UIScrollView *)scrollView {
    if (!_scrollView) {
        _scrollView = ({
            UIScrollView * view = [[UIScrollView alloc]initWithFrame:CGRectMake(0, navBar_Fheight, SCREEN_SIZE.width, SCREEN_SIZE.height - navBar_Fheight)];
            view.contentSize = CGSizeMake(0, SCREEN_SIZE.width * 6);
            [view addSubview:self.detailImageView];
            view;
        });
    }
    return _scrollView;
}
- (UIImageView *)detailImageView {
    if (!_detailImageView) {
        _detailImageView = ({
            UIImageView * view = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_SIZE.width, SCREEN_SIZE.width * 6)];
//            view.image = IMAGE_NAME(@"bigbang项目详情");
            view;
        });
    }
    return _detailImageView;
}
@end
